﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>Target Material Design Bootstrap Admin Template</title>

    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="stylesheet" href="/static/assets/materialize/css/materialize.min.css" media="screen,projection"/>
    <!-- Bootstrap Styles-->
    <link href="/static/assets/css/bootstrap.css" rel="stylesheet"/>
    <!-- FontAwesome Styles-->
    <link href="/static/assets/css/font-awesome.css" rel="stylesheet"/>
    <!-- Morris Chart Styles-->
    <link href="/static/assets/js/morris/morris-0.4.3.min.css" rel="stylesheet"/>
    <!-- Custom Styles-->
    <link href="/static/assets/css/custom-styles.css" rel="stylesheet"/>
    <!-- Google Fonts-->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'/>
    <link rel="stylesheet" href="/static/assets/js/Lightweight-Chart/cssCharts.css">
    <!-- jQuery Js -->
    <script src="/static/assets/js/jquery-1.10.2.js"></script>
    <script src="/static/js/vue.js"></script>
    <script src="/static/js/jquery.cookie.js"></script>
    <script src="/static/js/axios.js"></script>
    <script src="/static/assets/js/bootstrap-paginator.js"></script>
</head>

<body>
<div id="wrapper">
    <nav class="navbar navbar-default top-navbar" role="navigation">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand waves-effect waves-dark" href="index.html">
                <i class="large material-icons">track_changes</i>
                <strong>Real Space</strong>
            </a>

            <div id="sideNav" href="">
                <i class="material-icons dp48">toc</i>
            </div>
        </div>

        <ul class="nav navbar-top-links navbar-right">

            <li>
                <a class="dropdown-button waves-effect waves-dark" href="#!" data-activates="dropdown1">
                    <i class="fa fa-user fa-fw"></i>
                    <b>管理员1</b>
                    <i class="material-icons right">arrow_drop_down</i>
                </a>
            </li>
        </ul>
    </nav>
    <!-- Dropdown Structure -->
    <ul id="dropdown1" class="dropdown-content">
        <li>
            <a href="#">
                <i class="fa fa-user fa-fw"></i>个人信息</a>
        </li>
        <li>
            <a href="#">
                <i class="fa fa-sign-out fa-fw"></i>退出</a>
        </li>
    </ul>
    <ul id="dropdown2" class="dropdown-content w250">
        <li>
            <a href="#">
                <div>
                    <i class="fa fa-comment fa-fw"></i> New Comment
                    <span class="pull-right text-muted small">4 min</span>
                </div>
            </a>
        </li>
        <li class="divider"></li>
        <li>
            <a href="#">
                <div>
                    <i class="fa fa-twitter fa-fw"></i> 3 New Followers
                    <span class="pull-right text-muted small">12 min</span>
                </div>
            </a>
        </li>
        <li class="divider"></li>
        <li>
            <a href="#">
                <div>
                    <i class="fa fa-envelope fa-fw"></i> Message Sent
                    <span class="pull-right text-muted small">4 min</span>
                </div>
            </a>
        </li>
        <li class="divider"></li>
        <li>
            <a href="#">
                <div>
                    <i class="fa fa-tasks fa-fw"></i> New Task
                    <span class="pull-right text-muted small">4 min</span>
                </div>
            </a>
        </li>
        <li class="divider"></li>
        <li>
            <a href="#">
                <div>
                    <i class="fa fa-upload fa-fw"></i> Server Rebooted
                    <span class="pull-right text-muted small">4 min</span>
                </div>
            </a>
        </li>
        <li class="divider"></li>
        <li>
            <a class="text-center" href="#">
                <strong>See All Alerts</strong>
                <i class="fa fa-angle-right"></i>
            </a>
        </li>
    </ul>
    <ul id="dropdown3" class="dropdown-content dropdown-tasks w250">
        <li>
            <a href="#">
                <div>
                    <p>
                        <strong>Task 1</strong>
                        <span class="pull-right text-muted">60% Complete</span>
                    </p>
                    <div class="progress progress-striped active">
                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="60"
                             aria-valuemin="0" aria-valuemax="100"
                             style="width: 60%">
                            <span class="sr-only">60% Complete (success)</span>
                        </div>
                    </div>
                </div>
            </a>
        </li>
        <li class="divider"></li>
        <li>
            <a href="#">
                <div>
                    <p>
                        <strong>Task 2</strong>
                        <span class="pull-right text-muted">28% Complete</span>
                    </p>
                    <div class="progress progress-striped active">
                        <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="28"
                             aria-valuemin="0" aria-valuemax="100" style="width: 28%">
                            <span class="sr-only">28% Complete</span>
                        </div>
                    </div>
                </div>
            </a>
        </li>
        <li class="divider"></li>
        <li>
            <a href="#">
                <div>
                    <p>
                        <strong>Task 3</strong>
                        <span class="pull-right text-muted">60% Complete</span>
                    </p>
                    <div class="progress progress-striped active">
                        <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60"
                             aria-valuemin="0" aria-valuemax="100"
                             style="width: 60%">
                            <span class="sr-only">60% Complete (warning)</span>
                        </div>
                    </div>
                </div>
            </a>
        </li>
        <li class="divider"></li>
        <li>
            <a href="#">
                <div>
                    <p>
                        <strong>Task 4</strong>
                        <span class="pull-right text-muted">85% Complete</span>
                    </p>
                    <div class="progress progress-striped active">
                        <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="85"
                             aria-valuemin="0" aria-valuemax="100"
                             style="width: 85%">
                            <span class="sr-only">85% Complete (danger)</span>
                        </div>
                    </div>
                </div>
            </a>
        </li>
        <li class="divider"></li>
        <li>
    </ul>
    <ul id="dropdown4" class="dropdown-content dropdown-tasks w250 taskList">
        <li>
            <div>
                <strong>John Doe</strong>
                <span class="pull-right text-muted">
                        <em>Today</em>
                    </span>
            </div>
            <p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s...</p>
        </li>
        <li class="divider"></li>
        <li>
            <div>
                <strong>John Smith</strong>
                <span class="pull-right text-muted">
                        <em>Yesterday</em>
                    </span>
            </div>
            <p>Lorem Ipsum has been the industry's standard dummy text ever since an kwilnw...</p>
        </li>
        <li class="divider"></li>
        <li>
            <a href="#">
                <div>
                    <strong>John Smith</strong>
                    <span class="pull-right text-muted">
                            <em>Yesterday</em>
                        </span>
                </div>
                <p>Lorem Ipsum has been the industry's standard dummy text ever since the...</p>
            </a>
        </li>
        <li class="divider"></li>
        <li>
            <a class="text-center" href="#">
                <strong>Read All Messages</strong>
                <i class="fa fa-angle-right"></i>
            </a>
        </li>
    </ul>
    <!--/. NAV TOP  -->
    <nav class="navbar-default navbar-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav" id="main-menu">

                <li>
                    <a class="active-menu waves-effect waves-dark" href="index">
                        <i class="fa fa-dashboard"></i> 主页</a>
                </li>
                <li>
                    <a href="second" class="waves-effect waves-dark">
                        <i class="fa fa-desktop"></i>二手房信息管理</a>
                </li>
                <li>
                    <a href="renting" class="waves-effect waves-dark">
                        <i class="fa fa-bar-chart-o"></i>租房信息管理</a>
                </li>
                <li>
                    <a href="record" class="waves-effect waves-dark">
                        <i class="fa fa-qrcode"></i>看房记录</a>
                </li>

                <li>
                    <a href="user" class="waves-effect waves-dark">
                        <i class="fa fa-table"></i> 用户及经纪人</a>
                </li>
                <li>
                    <a href="knowledge" class="waves-effect waves-dark">
                        <i class="fa fa-edit"></i> 知识库管理 </a>
                </li>


                <li>
                    <a href="#" class="waves-effect waves-dark">
                        <i class="fa fa-sitemap"></i>楼盘信息
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="allfloor">全部楼盘</a>
                        </li>
                        <li>
                            <a href="renting">推荐楼盘</a>
                        </li>
                    </ul>
                </li>
                <!-- <li>
                    <a href="empty.html" class="waves-effect waves-dark">
                        <i class="fa fa-fw fa-file"></i> Empty Page</a>
                </li> -->
            </ul>

        </div>

    </nav>
    <!-- /. NAV SIDE  -->
    <div id="page-wrapper">
        <div class="header">
            <h1 class="page-header">
                看房记录管理
                <small>New</small>
            </h1>
            <ol class="breadcrumb">
                <li>
                    <a href="#">Home</a>
                </li>
                <li class="active">看房记录列表</li>
            </ol>

        </div>
        <div id="page-inner">
            <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="card">
                        <div class="card-action">
                            看房记录
                        </div>
                        <div class="add" style="margin-left:1400px;margin-top: -20px;">
                            <button type="button" class="btn btn-info" data-modal="modal-2" id="add1">
                                <i class="material-icons dp48">library_add</i>
                                添加
                            </button>
                        </div>
                        <div class="card-content" style="margin-top: 25px;">
                            <div class="table-responsive">

                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                    <tr>
                                        <th>id</th>
                                        <th>看房时间</th>
                                        <th>经纪人</th>
                                        <th>二手还是租房</th>
                                        <th>房屋id</th>
                                        <th>数据操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class="odd gradeX" v-for="(ls,index) in secondlist">
                                        <td class="edits">{{ls.id}}</td>
                                        <td>{{ls.time}}</td>
                                        <td>{{ls.broker}}</td>
                                        <td>{{ls.type}}</td>
                                        <td>{{ls.hourseid}}</td>
                                        <td>
                                            <button type="button" class="btn btn-primary" data-modal="modal-3" @click="edit(ls.id)">
                                                <span class="material-icons dp48"
                                                      style="font-size: 1.2em;">mode_edit</span>
                                                修改
                                            </button>
                                            <button type="button" class="btn btn-danger" @click="del(ls.id)">
                                                <span class="material-icons dp48" style="font-size: 1.2em;">not_interested</span>
                                                删除
                                            </button>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div id="example" style="text-align: center">
                                <ul id="pageLimit"></ul>
                            </div>
                        </div>
                    </div>
                    <!--End Advanced Tables -->
                </div>
            </div>
        </div>

        <!-- 添加 -->
        <div class="md-modal md-effect-2" id="modal-2">
            <div class="md-content">
                <h3>添加二手房信息</h3>
                <div>
                    <ul class="s1">
                        <li>
                            <div class="form-group">
                                <input type="text" class="form-control" placeholder="看房时间" id="time">
                            </div>
                            <div class="form-group">
                                <input type="email" class="form-control" placeholder="经纪人" id="broker">
                            </div>
                        </li>
                    </ul>
                    <ul class="s2">
                        <li>
                            <div class="form-group">
                                <input type="text" class="form-control" placeholder="二手房还是租房" id="type">
                            </div>
                            <div class="form-group">
                                <input type="email" class="form-control" placeholder="房源id" id="hourseid">
                            </div>
                        </li>
                    </ul>
                    <button type="button" class="btn btn-success" id="add" @click="add">提交</button>
                    <button type="button" class="btn btn-warning close1">关闭</button>
                </div>
            </div>
        </div>

        <!-- 修改 -->
        <div class="md-modal md-effect-3" id="modal-3">
            <div class="md-content">
                <h3>修改</h3>
                <div>
                    <ul class="s1">
                        <li>
                            <div class="form-group">
                                <input type="text" class="form-control time" placeholder="看房时间" v-model="editlist.time">
                            </div>
                            <div class="form-group">
                                <input type="email" class="form-control broker" placeholder="经纪人" v-model="editlist.broker">
                            </div>
                        </li>
                    </ul>
                    <ul class="s2">
                        <li>
                            <div class="form-group">
                                <input type="text" class="form-control type" placeholder="二手房还是租房" v-model="editlist.type">
                            </div>
                            <div class="form-group">
                                <input type="email" class="form-control hourseid" placeholder="房源id" v-model="editlist.hourseid">
                            </div>
                        </li>
                    </ul>
                    <div style="display: none;"  class="idw">{{editlist.id}}</div>
                    <button type="button" class="btn btn-success" id="submits" @click="submitedit">提交</button>
                    <button type="button" class="btn btn-warning" id="closes">关闭</button>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="md-overlay"></div>


<!-- Bootstrap Js -->
<script src="/static/assets/js/bootstrap.min.js"></script>

<script src="/static/assets/materialize/js/materialize.min.js"></script>

<!-- Metis Menu Js -->
<script src="/static/assets/js/jquery.metisMenu.js"></script>
<!-- Morris Chart Js -->
<script src="/static/assets/js/morris/raphael-2.1.0.min.js"></script>
<script src="/static/assets/js/morris/morris.js"></script>


<script src="/static/assets/js/easypiechart.js"></script>
<script src="/static/assets/js/easypiechart-data.js"></script>

<script src="/static/assets/js/Lightweight-Chart/jquery.chart.js"></script>

<!-- Custom Js -->
<script src="/static/assets/js/custom-scripts.js"></script>

<!-- 模态框 -->
<script src="/static/assets/js/classie.js"></script>
<script src="/static/assets/js/modalEffects.js"></script>
<script src="/static/assets/js/modalEffects1.js"></script>
<script src="/static/assets/js/record.js"></script>

</body>

</html>
